﻿<%@ page contentType="text/html;charset=UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="我的珠宝店后台管理">
    <title>我的珠宝店后台管理</title>
    <link rel="stylesheet" href="${ctx}/static/jui/themes/css/login.css">
    
    <script type="text/javascript">
	$(function() {
		window.location.href="${ctx}/logout";
	});
	</script>
</head>
<body style="background-color:#015198">
<div class="wrapper">
    <div class="logo"><%-- <img src="${ctx}/static/jui/themes/default/images/login-logo.png" alt="中国移动 一校"/> --%></div>

    <div class="login-box">
        <div align="center" style="background-color: lightseagreen">
            <h1 style="color:#ffffff ;">我的珠宝店后台管理</h1>
        </div>
        <c:if test="${message != null && message == 'fail'}">
        <div class="login-error">
        	<br /><br /><br />
            <img src="${ctx}/static/jui/themes/default/images/login-error.png" alt=""/>
            <span>用户名或密码错误</span>
        </div>
        </c:if>
        <form class="login-form" action="${ctx}/login" method="post">
            <div class="form-item">
                <img class="tip" src="${ctx}/static/jui/themes/default/images/login-name.png" alt=""/>
                <input type="text" name="username" id="username" placeholder="请输入您的账号"></div>
            <div class="form-item">
                <img class="tip" src="${ctx}/static/jui/themes/default/images/login-password.png" alt=""/>
                <input type="password" id="password" name ="password" placeholder="请输入您的密码"></div>
            <div class="form-item">
                <input id="login-submit" type="submit" value="登录">
            </div>
        </form>
    </div>
</div>
</body>
</html>